package abstractfactory;

import abstractfactory.animal.AnimalFacotry;
import abstractfactory.animal.CatFactory;
import factorymethod.AppleFactory;
import factorymethod.FruitFactory;

/**
 * @Author Fish Paradise
 * @Description
 * @Date 2019/1/17  17:19
 **/
public class AFactory implements BothFacotry {
    public FruitFactory createFruitFactory() {
        return new AppleFactory();
    }

    public AnimalFacotry createAnimalFactory() {
        return new CatFactory();
    }
}
